const express = require("express");
const router = express.Router();
const validateRequest = require("../middlewares/validationMiddleware"); // 验证器
// 检验器
const { list_validation, edit_validation, delete_validation } = require("../validators/companyHistory");
const { getCompanyHistoryList, editCompanyHistory, deleteCompanyHistory } = require("../controllers/companyHistory");

router.get("/getCompanyHistoryList", list_validation, validateRequest, getCompanyHistoryList); // 获取公司历史记录
router.post("/editCompanyHistory", edit_validation, validateRequest, editCompanyHistory); // 编辑公司历史记录
router.delete("/deleteCompanyHistory", delete_validation, validateRequest, deleteCompanyHistory); // 删除公司历史记录

module.exports = router;
